<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AdminPro - 现代化后台管理系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #6c757d;
            --success: #28a745;
            --info: #17a2b8;
            --warning: #ffc107;
            --danger: #dc3545;
            --light: #f8f9fa;
            --dark: #343a40;
            --sidebar-width: 260px;
            --header-height: 70px;
            --transition: all 0.3s ease;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f7fb;
            color: #333;
            display: flex;
            min-height: 100vh;
            overflow: hidden;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            width: var(--sidebar-width);
            background: linear-gradient(180deg, var(--primary), #3a56d4);
            color: white;
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            overflow-y: auto;
            transition: var(--transition);
            z-index: 100;
            box-shadow: var(--shadow);
        }
        
        .sidebar-header {
            padding: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            height: var(--header-height);
        }
        
        .logo {
            display: flex;
            align-items: center;
        }
        
        .logo i {
            font-size: 28px;
            margin-right: 12px;
        }
        
        .logo h2 {
            font-size: 22px;
            font-weight: 600;
        }
        
        .sidebar-menu {
            padding: 20px 0;
        }
        
        .menu-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 10px 20px;
            opacity: 0.7;
        }
        
        .menu-item {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            border-left: 3px solid transparent;
        }
        
        .menu-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .menu-item.active {
            background: rgba(255, 255, 255, 0.15);
            border-left: 3px solid white;
        }
        
        .menu-item i {
            font-size: 18px;
            width: 30px;
            margin-right: 10px;
        }
        
        .menu-item span {
            font-size: 15px;
        }
        
        .menu-badge {
            position: absolute;
            right: 20px;
            background: var(--danger);
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        /* 主内容区域样式 */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            transition: var(--transition);
            overflow-y: auto;
            height: 100vh;
        }
        
        /* 顶部导航栏 */
        .header {
            height: var(--header-height);
            background: white;
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 99;
        }
        
        .toggle-sidebar {
            font-size: 20px;
            cursor: pointer;
            color: var(--secondary);
        }
        
        .header-right {
            display: flex;
            align-items: center;
        }
        
        .search-box {
            position: relative;
            margin-right: 20px;
        }
        
        .search-box input {
            padding: 10px 15px 10px 40px;
            border-radius: 30px;
            border: 1px solid #ddd;
            outline: none;
            width: 250px;
            transition: var(--transition);
        }
        
        .search-box input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
        }
        
        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }
        
        .header-icons {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        
        .icon-btn {
            position: relative;
            display: flex;
            cursor: pointer;
            color: var(--secondary);
            font-size: 18px;
        }
        
        .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger);
            color: white;
            font-size: 10px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            margin-left: 20px;
            cursor: pointer;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 10px;
        }
        
        .user-info {
            display: flex;
            flex-direction: column;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 15px;
        }
        
        .user-role {
            font-size: 12px;
            color: var(--secondary);
        }
        
        /* 内容区域 */
        .content {
            padding: 30px;
        }
        
        .breadcrumb {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            color: var(--secondary);
            font-size: 14px;
        }
        
        .breadcrumb i {
            margin: 0 10px;
            font-size: 12px;
            opacity: 0.7;
        }
        
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--dark);
        }
        
        .action-buttons button {
            padding: 8px 20px;
            margin-left: 10px;
            border-radius: var(--border-radius);
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
        }
        
        .action-buttons i {
            margin-right: 8px;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .btn-secondary {
            background: white;
            color: var(--secondary);
            border: 1px solid #ddd;
        }
        
        .btn-secondary:hover {
            background: #f8f9fa;
        }
        
        /* 统计卡片 */
        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .card {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 20px;
            transition: var(--transition);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .card-stat {
            display: flex;
            align-items: center;
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-right: 15px;
        }
        
        .stat-info {
            flex: 1;
        }
        
        .stat-title {
            font-size: 14px;
            color: var(--secondary);
            margin-bottom: 5px;
        }
        
        .stat-value {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .stat-change {
            font-size: 12px;
            font-weight: 500;
        }
        
        .change-up {
            color: var(--success);
        }
        
        .change-down {
            color: var(--danger);
        }
        
        /* 图表区域 */
        .charts {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .chart-container {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 20px;
        }
        
        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .chart-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        .chart-actions {
            display: flex;
            gap: 10px;
        }
        
        .chart-actions i {
            color: var(--secondary);
            cursor: pointer;
        }
        
        .chart-placeholder {
            height: 300px;
            background: #f8f9fa;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            font-size: 14px;
        }
        
        /* 数据表格 */
        .data-table {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .table-header {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
        }
        
        .table-title {
            font-size: 18px;
            font-weight: 600;
        }
        
        .table-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .filter-btn {
            padding: 8px 15px;
            border-radius: var(--border-radius);
            border: 1px solid #ddd;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        
        .filter-btn i {
            margin-right: 5px;
        }
        
        .table-container {
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px;
        }
        
        thead {
            background: #f8fafc;
        }
        
        th {
            padding: 15px 20px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: var(--secondary);
            border-bottom: 1px solid #eee;
        }
        
        td {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
        }
        
        tr:hover {
            background: #f8fafc;
        }
        
        .status {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-completed {
            background: rgba(40, 167, 69, 0.1);
            color: var(--success);
        }
        
        .status-pending {
            background: rgba(255, 193, 7, 0.1);
            color: var(--warning);
        }
        
        .status-canceled {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger);
        }
        
        .action-cell {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .edit-btn {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }
        
        .edit-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .delete-btn {
            background: rgba(220, 53, 69, 0.1);
            color: var(--danger);
        }
        
        .delete-btn:hover {
            background: var(--danger);
            color: white;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .charts {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .header {
                padding: 0 15px;
            }
            
            .search-box input {
                width: 150px;
            }
            
            .content {
                padding: 15px;
            }
            
            .stats-cards {
                grid-template-columns: 1fr;
            }
        }
        
        /* 折叠侧边栏样式 */
        .sidebar.collapsed {
            width: 70px;
        }
        
        .sidebar.collapsed .logo h2,
        .sidebar.collapsed .menu-title,
        .sidebar.collapsed .menu-item span,
        .sidebar.collapsed .menu-badge {
            display: none;
        }
        
        .sidebar.collapsed .menu-item {
            padding: 15px 20px;
            justify-content: center;
        }
        
        .sidebar.collapsed .menu-item i {
            margin-right: 0;
            font-size: 22px;
        }
        
        .sidebar.collapsed + .main-content {
            margin-left: 70px;
        }
    </style>
</head>
<body>
    <!-- 侧边导航栏 -->
    <div class="sidebar">
        <div class="sidebar-header">
            <div class="logo">
                <i class="fas fa-chart-line"></i>
                <h2>AdminPro</h2>
            </div>
        </div>
        
        <div class="sidebar-menu">
            <div class="menu-title">主菜单</div>
            <div class="menu-item active">
                <i class="fas fa-home"></i>
                <span>控制面板</span>
            </div>
            <div class="menu-item">
                <i class="fas fa-users"></i>
                <span>用户管理</span>
            </div>
            <div class="menu-item">
                <i class="fas fa-shopping-cart"></i>
                <span>订单管理</span>
                <div class="menu-badge">12</div>
            </div>
            <div class="menu-item">
                <i class="fas fa-box"></i>
                <span>产品管理</span>
            </div>
            <div class="menu-item">
                <i class="fas fa-chart-bar"></i>
                <span>数据分析</span>
            </div>
            
            <div class="menu-title">系统设置</div>
            <div class="menu-item">
                <i class="fas fa-cog"></i>
                <span>系统设置</span>
            </div>
            <div class="menu-item">
                <i class="fas fa-bell"></i>
                <span>通知管理</span>
                <div class="menu-badge">3</div>
            </div>
            <div class="menu-item">
                <i class="fas fa-key"></i>
                <span>权限管理</span>
            </div>
            
            <div class="menu-title">其他</div>
            <div class="menu-item">
                <i class="fas fa-question-circle"></i>
                <span>帮助中心</span>
            </div>
            <div class="menu-item">
                <i class="fas fa-file-alt"></i>
                <span>文档</span>
            </div>
        </div>
    </div>
    
    <!-- 主内容区域 -->
    <div class="main-content">
        <!-- 顶部导航栏 -->
        <div class="header">
            <div class="toggle-sidebar">
                <i class="fas fa-bars"></i>
            </div>
            <div class="breadcrumb">
                <span>首页</span><i class="fas fa-chevron-right"></i>
                <span>控制面板</span>
            </div>
            
            <div class="header-right">
                <div class="search-box">
                    <i class="fas fa-search"></i>
                    <input type="text" placeholder="搜索...">
                </div>
                
                <div class="header-icons">
                    <div class="icon-btn">
                        <i class="far fa-bell"></i>
                        <div class="badge">5</div>
                    </div>
                    <div class="icon-btn">
                        <i class="far fa-envelope"></i>
                        <div class="badge">12</div>
                    </div>
                    <div class="icon-btn">
                        <i class="fas fa-cog"></i>
                    </div>
                </div>
                
                <div class="user-profile">
                    <div class="avatar">AD</div>
                    <div class="user-info">
                        <div class="user-name">管理员</div>
                        <div class="user-role">超级管理员</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="content">
            <div class="page-header">
                <div class="page-title">控制面板</div>
                <div class="action-buttons">
                    <button class="btn-secondary"><i class="fas fa-download"></i> 导出数据</button>
                    <button class="btn-primary"><i class="fas fa-plus"></i> 新增内容</button>
                </div>
            </div>
            
            <!-- 统计卡片 -->
            <div class="stats-cards">
                <div class="card">
                    <div class="card-stat">
                        <div class="stat-icon" style="background: rgba(67, 97, 238, 0.15); color: var(--primary);">
                            <i class="fas fa-users"></i>
                        </div>
                        <div class="stat-info">
                            <div class="stat-title">总用户数</div>
                            <div class="stat-value">12,842</div>
                            <div class="stat-change change-up"><i class="fas fa-arrow-up"></i> 12.5%</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-stat">
                        <div class="stat-icon" style="background: rgba(40, 167, 69, 0.15); color: var(--success);">
                            <i class="fas fa-shopping-cart"></i>
                        </div>
                        <div class="stat-info">
                            <div class="stat-title">总销售额</div>
                            <div class="stat-value">¥386,580</div>
                            <div class="stat-change change-up"><i class="fas fa-arrow-up"></i> 8.3%</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-stat">
                        <div class="stat-icon" style="background: rgba(255, 193, 7, 0.15); color: var(--warning);">
                            <i class="fas fa-chart-line"></i>
                        </div>
                        <div class="stat-info">
                            <div class="stat-title">转化率</div>
                            <div class="stat-value">24.7%</div>
                            <div class="stat-change change-down"><i class="fas fa-arrow-down"></i> 3.2%</div>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-stat">
                        <div class="stat-icon" style="background: rgba(220, 53, 69, 0.15); color: var(--danger);">
                            <i class="fas fa-exclamation-triangle"></i>
                        </div>
                        <div class="stat-info">
                            <div class="stat-title">待处理问题</div>
                            <div class="stat-value">18</div>
                            <div class="stat-change change-down"><i class="fas fa-arrow-up"></i> 2</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 图表区域 -->
            <div class="charts">
                <div class="chart-container">
                    <div class="chart-header">
                        <div class="chart-title">销售趋势</div>
                        <div class="chart-actions">
                            <i class="fas fa-download"></i>
                            <i class="fas fa-expand"></i>
                        </div>
                    </div>
                    <div class="chart-placeholder">
                        <i class="fas fa-chart-line" style="font-size: 50px; margin-right: 15px;"></i>
                        销售趋势图表展示区域
                    </div>
                </div>
                
                <div class="chart-container">
                    <div class="chart-header">
                        <div class="chart-title">用户分布</div>
                        <div class="chart-actions">
                            <i class="fas fa-download"></i>
                            <i class="fas fa-expand"></i>
                        </div>
                    </div>
                    <div class="chart-placeholder">
                        <i class="fas fa-chart-pie" style="font-size: 50px; margin-right: 15px;"></i>
                        用户分布图表展示区域
                    </div>
                </div>
            </div>
            
            <!-- 数据表格 -->
            <div class="data-table">
                <div class="table-header">
                    <div class="table-title">最近订单</div>
                    <div class="table-controls">
                        <div class="filter-btn">
                            <i class="fas fa-filter"></i>
                            筛选
                        </div>
                        <div class="filter-btn">
                            <i class="fas fa-calendar"></i>
                            时间范围
                        </div>
                    </div>
                </div>
                
                <div class="table-container">
                    <table>
                        <thead>
                            <tr>
                                <th>订单号</th>
                                <th>客户</th>
                                <th>日期</th>
                                <th>金额</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>#ORD-1283</td>
                                <td>张三</td>
                                <td>2023-07-15</td>
                                <td>¥1,280</td>
                                <td><span class="status status-completed">已完成</span></td>
                                <td class="action-cell">
                                    <div class="action-btn edit-btn"><i class="fas fa-edit"></i></div>
                                    <div class="action-btn delete-btn"><i class="fas fa-trash"></i></div>
                                </td>
                            </tr>
                            <tr>
                                <td>#ORD-1284</td>
                                <td>李四</td>
                                <td>2023-07-16</td>
                                <td>¥2,450</td>
                                <td><span class="status status-pending">处理中</span></td>
                                <td class="action-cell">
                                    <div class="action-btn edit-btn"><i class="fas fa-edit"></i></div>
                                    <div class="action-btn delete-btn"><i class="fas fa-trash"></i></div>
                                </td>
                            </tr>
                            <tr>
                                <td>#ORD-1285</td>
                                <td>王五</td>
                                <td>2023-07-16</td>
                                <td>¥850</td>
                                <td><span class="status status-completed">已完成</span></td>
                                <td class="action-cell">
                                    <div class="action-btn edit-btn"><i class="fas fa-edit"></i></div>
                                    <div class="action-btn delete-btn"><i class="fas fa-trash"></i></div>
                                </td>
                            </tr>
                            <tr>
                                <td>#ORD-1286</td>
                                <td>赵六</td>
                                <td>2023-07-17</td>
                                <td>¥3,200</td>
                                <td><span class="status status-canceled">已取消</span></td>
                                <td class="action-cell">
                                    <div class="action-btn edit-btn"><i class="fas fa-edit"></i></div>
                                    <div class="action-btn delete-btn"><i class="fas fa-trash"></i></div>
                                </td>
                            </tr>
                            <tr>
                                <td>#ORD-1287</td>
                                <td>钱七</td>
                                <td>2023-07-18</td>
                                <td>¥1,560</td>
                                <td><span class="status status-pending">处理中</span></td>
                                <td class="action-cell">
                                    <div class="action-btn edit-btn"><i class="fas fa-edit"></i></div>
                                    <div class="action-btn delete-btn"><i class="fas fa-trash"></i></div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 切换侧边栏折叠状态
        document.querySelector('.toggle-sidebar').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('collapsed');
        });
        
        // 模拟菜单项点击事件
        const menuItems = document.querySelectorAll('.menu-item');
        menuItems.forEach(item => {
            item.addEventListener('click', function() {
                menuItems.forEach(i => i.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 模拟卡片悬停效果
        const cards = document.querySelectorAll('.card');
        cards.forEach(card => {
            card.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-5px)';
                this.style.boxShadow = '0 10px 20px rgba(0, 0, 0, 0.1)';
            });
            
            card.addEventListener('mouseleave', function() {
                this.style.transform = 'translateY(0)';
                this.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)';
            });
        });
    </script>
</body>
</html>